
   <?php
class block_my_block extends block_base {
    public function init() {
        $this->title = get_string('my_block', 'block_my_block');
    }
    // The PHP tag and the curly bracket for the class definition 
    // will only be closed after there is another function added in the next section.
    public function get_content() {
    	if ($this->content !== null) {
    		return $this->content;
    	}
    
    	$this->content         =  new stdClass;
    	$this->content->text   = date("F j, Y, G:i:s a"); 
    	$this->content->footer = '';
    
    	return $this->content;
    }
    
        
    }   // Here's the closing bracket for the class definition
?>